PermissionService

class PermissionService(context: Context)

PermissionService provides the functionality to check and request the Permissions required for the BlueJeans SDK. This service is an optional service, you can choose to use your own permission mechanism.

BlueJeans SDK requires permissions Manifest.permission.RECORD_AUDIO for sending audio, Manifest.permission.CAMERA for sending video and if on OS 12 device Manifest.permission.BLUETOOTH_CONNECT for connecting to Bluetooth headsets when user joins a call.

The app needs to have a mandatory minimum permission android.Manifest.permission.RECORD_AUDIO in application manifest and request for it to join any meeting.

Note: Registering the service in onCreate of a activity is mandatory before calling request permissions within that activity.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion
Link copied to clipboard
sealed class Permission

Represents various types of permission required for calling experience.

Link copied to clipboard
sealed class RequestStatus

This sealed class will use to notify about permission service api result

Properties

Link copied to clipboard

Represents the list of denied permission in case multiple permissions are requested.

Functions

Link copied to clipboard

Checks whether all permission granted for a complete audio video calling experience.

Link copied to clipboard

Checks for minimum permissions required to join a meeting

Link copied to clipboard

Checks the individual permission if already granted.

Link copied to clipboard
fun register(componentActivity: ComponentActivity)

As per new behaviour change in activity result api. All result api register must call on every create of the activity. permissionService.registerForPermissionService do registerForActivityResult for given activity This method need to be called before using the permission service. Without registering permission service none of the api of this class will work. registration needs weak reference of activity

Link copied to clipboard

Requests for all mandatory permissions which are required for the SDK.
All required permission are specified in "permissions" map.

Link copied to clipboard

Requests array of permissions required for androidx ComponentActivity.